import requests
import ssl
import json

url = "https://192.168.1.10:8080/configure"
payload={'data': '[{"op": "set", "path": [ "firewall", "name", "DB_POLICY", "default-action", "drop"]}, \
                   {"op": "set", "path": [ "firewall", "name", "DB_POLICY", "rule", "10", "state", "established", "enable"]}, \
                   {"op": "set", "path": [ "firewall", "name", "DB_POLICY", "rule", "10", "action", "accept"]}, \
                   {"op": "set", "path": [ "interfaces", "ethernet", "eth1", "vif", "30", "firewall", "in", "name", "DB_POLICY"]} ]',
        'key': 'PS-HTTPS-API-PLAINTEXT-KEY'}
headers = {}
response = requests.request("POST", url, headers=headers, data=payload, verify=False)
print(response.text)